Measurement of bottom-quark hadron masses in exclusive J/ψ decays with the CDF detector