Crossover from magnetostatic to exchange coupling in La0.67Ca0.33MnO3/YBa2Cu3O7/La0.67Ca0.33MnO3 heterostructures