A fiber optic sensor for displacement and acceleration measurements in vibration tests