Elastomeric binary phase gratings for measuring acceleration, displacement, strain, and stress