Planar refractive microlens arrays in indium phosphide and quartz substrates