Roche agrees to buy GenMark Diagnostics in $1.8 billion deal