On supersymmetry, boundary actions and brane charges