Intramolecular pyrene excimer in probing the sol-gel process