X-ray study of the structural phase transition in nickel hexammine perchlorate