Nick Clegg has warned against allowing MPs from Ukip or the SNP to hold the balance of power after the general election.