you can use any spray foam, but remember that foam is very boyant, people that use foam for background sillicone them to the back glass or melt it away once the rock is done....
First thing you do is spray out the foam, shape it with some sand paper , then get some cement, and mix it up, You can add stones or sand to it to get the cosistancy you want, you can use concreet dyes to colour it however you want or paint the cement with epoxy paint. the problem with useing cement is that it leaches out lye into the water as it finishes curing, this raises your PH to a deadly level, and the way to avoid killing all your fish off it to soak the creation in water and do frequint water changes untill the pg has stablized to a normal level(7). this takes weeks, not days. useily about 4 weeks for the cement to fully cure. then some peope melt the foam away, useing aceitone or a toarch, this gets rid or the boyancyt issue.
Hope this helps, all this info is avalabe on any one of the 6-7 DIY background thread here for the last week...