Approximate weight functions for center and edge cracks in finite bodies