Plates and shells containing a surface crack under general loading conditions