Three-dimensional structure of buried heterointerfaces revealed by multislice ptychography