DC Motor as an AC Generator