Comparison of source detection procedures for XMM-Newton images