Housekeeping and excess entropy production for general nonlinear dynamics