Gravar-mail: A simple effective model for STDP: from spike pairs and triplets to rate-encoding plasticity