Worldline approach to quantum field theories on flat manifolds with boundaries