Tribotronic bipolar junction transistor for mechanical frequency monitoring and use as touch switch