Single-mass-scale diagrams: construction of a basis for the ε-expansion