Measurement of decay amplitudes of B→J/ψK*, ψ(2S)K*, and χc1K* with an angular analysis