Control over crystal, local atomic and electronic structures of cerium chromates/chromites via the synthesis conditions