vectorized computation of strain profiles. former loop implementation
remains as alternative