Dynamic and thermodynamic changes in mean and extreme precipitation under changed climate