The extension problem for certain function spaces involving fractional orders of differentiability