persistence_length calculation modified for each phosphate