Design and realization of an optical bi-axial inclination sensor