Integration of Scheduling and Replication in Data Grids