Lattice effects of doping the Mn sites in La0.5Ca0.5MnO3