Entanglement and complexity of purification in (1+1)-dimensional free conformal field theories