Optimal energy growth and optimal control in swept Hiemenz flow