Restoring optical forces and torques for passive stabilization of microscopic lightsails