Anatomy of the internal bow shocks in the IRAS 04166+2706 protostellar jet