how did Gandhi's upbringing shape his beliefs