A Framework of Nanomechanical Communication Systems Based on State Transitions