Libraries of N-alkylaminoheterocycles from nucleophilic aromatic substitution with purification by solid supported liquid extraction