Complemented subgroups and the structure of finite groups