Procter & Gamble earnings beat estimates, but weak demand in China hurts sales