Spin and orbital Edelstein effect in an oxide two-dimensional electron gas: theory and application to AlO$_x$/SrTiO$_{3}$