Variable valve device for an internal combustion engine