Acid precursor incorporated nanocapsules and solid polymer nanoparticles for enhanced oil recovery