Interacting branes, dual branes, and dyonic branes: A Unifying Lagrangian approach in D dimensions