Apple earnings top forecast but revenue falls short