MACPET: model-based analysis for ChIA-PET