The structure and function of thylakoid membranes in a marine diatom