Tomographic diffractive microscopy and multiview profilometry with flexible aberration correction.