A methodology for training homomorphicencryption friendly neural networks