A Rawlsian Approach to Distribute Responsibilities in Networks