A structural and spectroscopic investigation of polyfluorene copolymers in solution and the solid state