Computing the Newton polytope of the discriminant from the fiber polytope. The diagram method for 3-folds and its application to the Kähler cone and Picard number of Calabi-Yau 3-folds. I. -- With an appendix by Vyacheslav V. Shokurov: Anticanonical boundedness for curves 