Electrostatically driven optical Z-axis scanner with thermally bonded glass microlens