Scalar field instabilities in charged BTZ black holes