Glass and ceramic thin films deposited by an ultrasonically assisted sol-gel technique