Generalized self-consistent reservoir model for normal and anomalous heat transport in quantum harmonic chains.