Electroosmotic flow reversal and ion selectivity in a soft nanochannel