An analytical solution to the stress fields of kinked cracks