Index theorem for merons