Linear and digital switching amplifiers