Global weak solutions of the Vlasov-Maxwell system with boundary conditions