Mechanisms of ocean heat uptake along and across isopycnals