Structure and thermal stability of the RMgPb rare earths compounds, and the anomalous melting behaviour of SmMgPb