Skewed and double distributions in pion and nucleon