Active power filters for all-electric ships