The application of smartphones to measuring transient structural displacements