Apple supplier Corning beat profit and revenue expectations despite iPhone woes