who did the dominican republic gain its independence from