Modular Invariants Expressible in Terms of Quadratic and Cubic Irrationalities