Splitted R/calculate_intensity.R into multiple files

Signed-off-by: Charles Joly Beauparlant <Charles.Joly-Beauparlant@crchul.ulaval.ca>