On genus change in algebraic curves over imperfect fields