Immersed boundary simulations of flows driven by moving thin membranes