NH3 is a covalent compound and MgCL2 is an eletrovalent compound give reason