Modulation of electrons and positrons in 2006–2015 in the PAMELA experiment