Method for the preparation of silk fibroin hydrogel