Merck earnings beat on top and bottom lines, raises forecast