Relative hulls and quantum codes