On periodic solutions of two-dimensional nonautonomous differential systems