New way of detecting oxygen on exoplanets could help find life