Preparation of indolylpropenylideneheterocycles for treatment of osteoporosis