Text this: An Optical Sensor for Measuring In-Plane Linear and Rotational Displacement