The US production to be shot in the Empordà town's Sant Ferran castle in the autumn will star Christian Bale and Oscar Isaac in an epic historical romance