The CW’s ‘Supergirl’ to end next year after sixth season