Synthesis and characterization of mesoporous silica films by spin-coating on silicon: photoionization of methylphenothiazine and photoluminescence of erbium 8-hydroxyquinolinate in mesoporous silica films