Apple is having a bad year, and so many of its problems are self-inflicted