Change in periodicity of the incommensurate magnetic order towards commensurate order in bismuth ferrite lead titanate