Locally homogeneous rigid geometric structures on surfaces