Eigenfunctions with prescribed nodal sets