A computational approach towards modelling dislocation transmission across phase boundaries