Photoacoustic detection of low duty cycle gratings through optically opaque layers