A systematic search of highly variable X-ray sources with the XMM-Newton serendipitous survey