Environmental effects on crack tip processes at the atomic level