A linear-time algorithm for the k-fixed-endpoint path cover problem on cographs