Optical and mechanical properties of sol-gel antireflective films for solar energy applications