Unveiling In-Context Learning: A Coordinate System to Understand Its Working Mechanism