Integral inequalities of Hermite--Hadamard type for $(\alpha,s)$-convex and $(\alpha,s,m)$-convex functions