Convexity of Functions which are Generalizations of the Erlang Loss Function and the Erlang Delay Function