How mass extinctions can help scientists find complex alien life