Hydrides with the perovskite structure : General bonding and stability considerations and the new representative CaNiH3