The Lq-spectrum for a class of self-similar measures with overlap