Coordination geometry and structural determinations of SmPO4, EuPO4 and GdPO4