Measurement of the B -> J/psi K*(892) decay amplitudes