Microencapsulation of silicon cavities using a pulsed excimer laser