Acoustoelasticity in cracked solids