The spectral representation of two-point boundary-value problems for third-order linear evolution partial differential equations