Roles of defects and grain sizes in photoluminescence of nanocrystalline SrTiO3