Giant resonances in exotic spherical nuclei within the RPA approach with the Gogny force