Automatic ELM detection using gSPRT on the COMPASS tokamak