Growth, structure, electronic, and magnetic properties of MgO/Fe(001) bilayers and Fe/MgO/Fe(001) trilayers