An inverse problem for a semilinear parabolic equation