Synthesis of nanocrystalline strontium titanate by a sol–gel assisted solid phase method and its formation mechanism and photocatalytic activity