added integration over line width for intensity profile