On Itô’s formula for semimartingales with jumps and non-C2 functions