Jan Vekart z Vřesovic — Czech nobleman, Swedish general