Electric potential due to continuous charge distribution