The elastic stress fields of elliptic and tapered cracks with predefined shapes