Spectral triples from bimodule connections and Chern connections