Measurement of decay amplitudes of B -> J/psi K-*, psi(2S)K-*, and chi K-c1(*) with an angular analysis