Spanish PM calls snap election after regional defeat