what is the freedom of religion based upon