Magnetic ordering and granularity effects in La1−xBaxMnO3